
class Request {

    constructor() {
        this.header = {}
        this.body = {}
    }

    setApi( api ){
        this.header['api'] = api 
    }

    setRequestId( val ) {
        this.header['requestId'] = val 
    }

    setBodyValue( key , value ) {
        this.body[ key ] = value 
    }

    toString() {
        return JSON.stringify( this )
    }

}

module.exports = Request 